package com.playtime.layouts.example2;

import javafx.fxml.FXML;
import javafx.scene.control.Button;

public class Example2Controller {

    @FXML private Button moveForwardButton;
    @FXML private MoveAnimation moveForwardAnimation;

    @FXML private Button moveBackButton;
    @FXML private MoveAnimation moveBackAnimation;

    public void moveForward() {
        moveForwardButton.setDisable(true);
        moveBackButton.setDisable(false);
        moveForwardAnimation.play();
    }

    public void moveBack() {
        moveBackButton.setDisable(true);
        moveForwardButton.setDisable(false);
        moveBackAnimation.play();
    }
}
